<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta name="layout" content="main">
    <title>Edit User Info</title>
  </head>
  
  <body>
    <h1>Edit ${donor.username} Information</h1>
    </br>
    
  <g:hasErrors>
    <div class="errors">
      <g:renderErrors bean="${donor}" as="list" />
    </div>
   </g:hasErrors>
  
  <g:if test="${flash.message}">
    <div class="flash">${flash.message}</div>
  </g:if>
    
    <form action="changePassword">
      <g:hiddenField name="username" value="${donor.username}"/>
      <table>
          <tr>
          <td>Password: </td>
          <td><g:passwordField name="password" value="" /></td>
        </tr>
        <tr>
          <td>Repeat Password: </td>
          <td><g:passwordField name="repeatPassword" value="" /></td>
        </tr>
      </table>
      <g:submitButton name="submit" value="Submit"/>
      <g:actionSubmit value="Cancel" action="view"/>
    </form>
  </body>
</html>